import Layout from "../components/Layout"
import YYB from "../YYB/NewsInfo"
// 四十八小时排行
import TimeMore from '../YYB/TimeMore.vue'
// 编辑排行
import EitMore from '../YYB/EitMore'
// 评论排行
import CommentMore from '../YYB/CommentMore'
import defaults from '../views/default.vue'


let routes = [
    {
        path:"/",
        component:Layout,
        title:"默认首页",
        redirect:{
            path:"/default"
        },
        children:[
            {
                path:'default',
                component:defaults
            },
            {
                path:'timemore',
                component:TimeMore
            },{
                path:'eitmore',
                component:EitMore
            },{
                path:'commentmore',
                component:CommentMore
            }
        ]
        


    },{
        path:'/home/newsinfo/:id',
        component:YYB
    },
  

]

export default routes